<?php
	function getTopPlaceFromComment(){
		$stCountComment = file_get_contents("http://localhost/zingmesdk/model/webservice/get_count_comment_month.php");
		$json = json_decode($stCountComment);
		foreach($json as $key => $value) {
			if(strcmp($key,'success')==0){
                if($value==1){
					foreach($json as $key => $value)
						if (is_array($value)) {
							return $value;
						}
				}
				else{
					return false;
				}
			}
		}
	}
	function getNewestCommentModel()
	{
		$stNewestComment = file_get_contents("http://localhost/zingmesdk/model/webservice/get_newest_comment.php");
		$json = json_decode($stNewestComment);
		foreach($json as $key => $value) {
			if(strcmp($key,'success')==0){
                if($value==1){
					foreach($json as $key => $value)
						if (is_array($value)) {
							return $value;
						}
				}
				else{
					return false;
				}
			}
		}
	}
?>